package com.quasar.hpatient.module.mine;

import android.widget.ImageView;
import android.widget.TextView;

import com.quasar.hpatient.R;

import lib.quasar.base.frame.BasePresenter;
import lib.quasar.context.BaseApp;
import lib.quasar.db.manager.DBManager;
import lib.quasar.db.table.User;

/**
 * description: 我
 * created by kalu on 2018/4/2 11:03
 */
public class MinePresenter implements BasePresenter {

    public void loadInfo(MineView view, TextView names, TextView phones, ImageView image) {

        if (null == view)
            return;

        final User user = DBManager.getInstance().syncGetUserModel();
        view.setText(names, user.getReal_name());
        view.setText(phones, BaseApp.getStrings(R.string.mine_account, user.getPhone()));
        view.setImage(image, user.getUrl(), true);
    }

    @Override
    public void recycler() {
    }
}
